<?php

/**
 * Global config
 */

namespace App\Services;

class ConfigService
{

    const MIN_PRICE = 100;
    const MAX_PRICE = 2000;
    const LIMIT_PRICE = 100;

    /**
     * Generate the price set.
     * @Author   wangwenfan
     * @DateTime 2019-11-09
     * @return   array
     */
    public static function generatePrice()
    {
        $prices = [];
        for ($i = 1; $i < 20; $i++) {
            $price['start_price'] = $i * self::LIMIT_PRICE;
            $price['end_price'] = $price['start_price'] + self::LIMIT_PRICE;
            $prices[] = $price;
        }
        return $prices;
    }
}
